package com.web.common.dao;

import java.util.List;

import com.web.common.po.Article;

public interface ArticleMapper {
    int deleteByPrimaryKey(Integer articleId);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Integer articleId);
    
    //通过用户和文章查询记录数
    Long selectByUserAndArt(int articleId, int userId);
    
    //查询文章列表（基本信息）
    List<Article> queryAll();
    
    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKeyWithBLOBs(Article record);

    int updateByPrimaryKey(Article record);
}